import {
	$http
} from '@escook/request-miniprogram'
export default {
	//司机端认证确认信息
	modifyDriverImgUrl(data) {
		return $http.post('/account/driver/modifyDriverImgUrl', data);
	},
	//根据司机id查询对应信息
	queryDriverImgUrlByUserID(data) {
		return $http.post('/account/driver/queryDriverImgUrlByUserID', data);
	},
	//根据司机id设置司机信息
	modifyDriverDetailByUserID(data) {
		return $http.post('/account/driver/modifyDriverDetailByUserID', data);
	},

	addDriverDetailByUserID(data) {
		return $http.post('/account/driver/addDriverDetailByUserID', data);
	},
	updateVehicle(data) {
		return $http.put('/account/vehicle/update', data);
	},
	//查询我的车辆列表
	driverList(data) {
		return $http.get('/account/driver/driverList', data);
	},
	list(data) {
		return $http.post('/account/vehicleModelCategory/list', data);
	},

	//设置-手机号验证
	validatePhoneNumber(data) {
		return $http.get('/account/driver/validatePhoneNumber', data);
	},
	//设置-手机获取code
	vailidateCode(data) {
		return $http.get('/account/driver/vailidateCode', data);
	},
	//设置-更换手机
	updateDriverPhoneNumber(data) {
		return $http.put('/account/driver/updateDriverPhoneNumber', data);
	},

	loginDriverInfo(data) {
		return $http.put('/account	/driver/loginDriverInfo', data);
	},
	// 'account/driver/vailidateCode/18166460411'
	//根据司机id设置司机信息
	type(data) {
		return $http.post('/account/vehicleModelCategory/type', data);
	},

	//根据登陆用户获取用户信息及旁于信息
	getUserInfoDetail(data) {
		return $http.get('/account/driver/getUserInfoDetail');
	},
	//修改当前司机使用的车辆
	modifyDriverVehicleInfoByVid(data) {
		return $http.post("/account/driver/modifyDriverVehicleInfoByVid", data);
	},
	//统计在线时间
	recordsUserLoginInfo(data) {
		return $http.get("/system/user/recordsUserLoginInfo", data);
	},
	//查询我的所有消息
	queryDriverMessageAll(data) {
		return $http.get("/account/message/queryDriverMessageAll");
	},
	//修改消息状态
	modifyMessageRead(data) {
		return $http.post("/account/message/modifyMessageRead", data);
	},
	//修改消息状态
	modifyMessageReadAll(data) {
		return $http.post("/account/message/modifyMessageReadAll", data);
	},
	//计算距离
	countDistanceArray(data) {
		return $http.post("/account/driver/countDistanceArray", data);
	},
	//实时更新司机位置lat lng 
	timingRenewDriverPosition() {
		return $http.post("/account/driver/timingRenewDriverPosition", data);
	},
	memberOpenAnAccount(data) { //行为分审核
		return $http.post('/order/bank/memberOpenAnAccount', data)
	},
	echo(data) { //编辑车辆回显
		return $http.get('/account/vehicle/echo', data)
	},
	driverCodeList(data) { //推广记录
		return $http.get('/account/driver/driverCodeList', data)
	},
	getIsDriverCode(data) { //推广码是否存在
		return $http.get('/account/driver/getIsDriverCode', data)
	},
	getDriverCode(data) { //推广码生产
		return $http.get('/account/driver/getDriverCode', data)
	},
	//版本查询
	queryVision(data) {
		return $http.get('/account/driver/queryVision', data);
	},
	driverQueryTransportBill(data){
		return $http.post('/supplier/selfSupportWaybill/self_support/driverQueryTransportBill', data)
	},
	addDriverQueryTransportBill(data){
		return $http.post('/supplier/selfSupportWaybill/self_support/addDriverQueryTransportBill', data)
	},
	getDriverProject(data){
		return $http.get('/supplier/selfSupportWaybill/self_support/getDriverProject', data)
	}
}